package rents.jms_client;

import java.util.List;

import org.springframework.jms.core.JmsTemplate;

import rents.User;

public class JmsUserBatchProcessor implements UserBatchProcessor{
	
	private JmsTemplate jmsTemplate;

	public void setJmsTemplate(JmsTemplate jmsTemplate) {
		this.jmsTemplate = jmsTemplate;
	}

	public void processBatch(List<User> batch) {
		for (User user : batch) {
			jmsTemplate.convertAndSend(user);
		}
	}



}
